﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PlaceUpdate.aspx.cs" Inherits="Pages_PlaceUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 75%;
        }
        .style2
        {
        }
        .style3
        {
            width: 154px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
                    <asp:HyperLink ID="hlAdd" runat="server" 
                        NavigateUrl="~/Pages/PlaceMain.aspx">Voltar.</asp:HyperLink>
                <table class="style1">
                    <tr>
                        <td class="style2" colspan="2">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label5" runat="server" Text="Estado"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlState" runat="server" 
                                onselectedindexchanged="ddlState_SelectedIndexChanged" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label6" runat="server" Text="Cidade"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlCity" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label1" runat="server" Text="CEP"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txbZip" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv" runat="server" ControlToValidate="txbZip" 
                                ErrorMessage="Preencha o CEP.">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label2" runat="server" Text="Endereço"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txbAddress" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv0" runat="server" 
                                ControlToValidate="txbAddress" ErrorMessage="Preencha o endereço.">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label3" runat="server" Text="Complemento"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txbComplement" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label4" runat="server" Text="Número"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txbNumber" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv2" runat="server" 
                                ControlToValidate="txbNumber" ErrorMessage="Preencha o número.">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnUpdate" runat="server" Text="Alterar" 
                                onclick="btnUpdate_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
